package com.data.boot.service;

import java.util.Map;

/**
 * Created by dwk on 2019/6/4.
 * 数据装载工厂类
 */

public class LoadDataServiceFactory {
    private static LoadDataServiceFactory loadDataServiceFactory = new LoadDataServiceFactory();
    private Map<String, LoadDataService> map;


    private LoadDataServiceFactory() {
    }

    public LoadDataService newInstance(String type) {
        return map.get(type);
    }

    public static LoadDataServiceFactory getLoadDataServiceFactory() {
        return loadDataServiceFactory;
    }

    public void setMap(Map<String, LoadDataService> map) {
        this.map = map;

    }
}
